package cn.zhentao.controller;

import cn.zhentao.pojo.Jq;
import cn.zhentao.service.JqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/jq")
public class JqController {
    @Autowired
    private JqService jqService;
    @GetMapping("/finda")
    List<Jq>finda(){
        List<Jq> finda = jqService.finda();
        return finda;
    }
}
